import request from '@/utils/request'

let interfaceChannelApi = {

  // 新增接口渠道
  addInterfaceChannel(data) {
    return request({
      url: '/interfaceChannel',
      method: 'post',
      data
    })
  },
  // 接口渠道列表
  interfaceChannelList(params) {
    return request({
      url: '/interfaceChannel/list',
      method: 'get',
      params
    })
  },
  // 修改接口渠道
  edit(data) {
    return request({
      url: '/interfaceChannel',
      method: 'put',
      data
    })
  },
  // 通过ID查接口渠道
  getInterfaceChannel(id) {
    return request({
      url: `/interfaceChannel/${id}`,
      method: 'get'
    })
  },
}
export default interfaceChannelApi
